/**
 * Created by dylan_Apple on 16/12/13.
 */
/**
 * Created by Amaris on 2016/10/9.
 */

var Waterline = require('waterline');
var uuid = require('node-uuid');
var moment = require('moment');

/**
 * 统计信息
 * @type {void|*}
 */
module.exports = Waterline.Collection.extend({
    identity: 'evaluate',
    tableName: 'view_evaluate',
    connection: "mysql",
    attributes: {

        rowId: {
            type: 'string',
            primaryKey: true,
            unique: true,
            required: true,
            columnName: 'rowid',
        },
        sellerName: {
            type: 'string',
            required: true,
            columnName: 'seller_name'
        },
        surveyingPreCount: {
            type: 'integer',
            columnName: 'surveying_pre_count'
        },
        surveyingThisCount: {
            type: 'integer',
            columnName: 'surveying_this_count'
        },
        roadshowPreCount: {
            type: 'integer',
            required: true,
            columnName: 'roadshow_pre_count'
        },
        roadshowThisCount: {
            type: 'integer',
            required: true,
            columnName: 'roadshow_this_count'
        },
        mconferencePreCount: {
            type: 'integer',
            required: true,
            columnName: 'mconference_pre_count'
        },
        mconferenceThisCount: {
            type: 'integer',
            required: true,
            columnName: 'mconference_this_count'
        },
        strategymeetingPreCount: {
            type: 'integer',
            required: true,
            columnName: 'strategymeeting_pre_count'
        },
        strategymeetingThisCount: {
            type: 'integer',
            required: true,
            columnName: 'strategymeeting_this_count'
        },
        teleconferencePreCount: {
            type: 'integer',
            required: true,
            columnName: 'teleconference_pre_count'
        },
        teleconferenceThisCount: {
            type: 'integer',
            required: true,
            columnName: 'teleconference_this_count'
        }
    },
    autoCreatedAt: false,
    autoUpdatedAt: false

});